#pragma once

#include <llvm/IR/Value.h>
#include <llvm/IR/Type.h>
#include <llvm/Support/raw_ostream.h>

inline void print_v(const llvm::Value* v) {
    if (v == nullptr) return;
    v->print(llvm::errs());
    fprintf(stderr, "\n");
}

inline void print_t(const llvm::Type* t) {
    if (t == nullptr) return;
    t->print(llvm::errs());
    fprintf(stderr, "\n");
}